package com.ms.service.module.fish.message.server;

import java.nio.ByteBuffer;

import com.ms.service.module.fish.message.FishBaseMessage;
import com.ms.service.module.fish.utils.GoConstant;

/**
 * 炮弹属性变更
 * @author cuiwm
 */
public class BatteryAttrMessage extends FishBaseMessage{
	
    private int attr;
    private int val;
    
    public BatteryAttrMessage(int attr,int val) {
    	this.attr = attr;
    	this.val = val;
	}

	@Override
	public void writeBody(ByteBuffer buf) {
		buf.put((byte) GoConstant.BATTERY_TYPE_14);
		buf.put((byte) attr);
		buf.putInt(val);
	}


}